package org.zcl.多线程;

/**
 * @Package org.zcl.多线程
 * @PROJECT_NAME: question
 * @DESCRIPTION:
 * @USER: zhuchenglin
 * @DATE: 2022/1/5 14:10
 */
public class HelloSogou{
    public static synchronized void main(String[] a){
        Thread t= new Thread(HelloSogou::Sogou);
        t.start();
        System.out.print("Hello");
    }

    static synchronized void Sogou(){
        System.out.print("Sogou");
    }
}
